package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TCategoryDao;
import com.taiyo.modules.api.entity.TCategoryEntity;
import com.taiyo.modules.api.service.TCategoryService;



@Service("tCategoryService")
public class TCategoryServiceImpl implements TCategoryService {
	@Autowired
	private TCategoryDao tCategoryDao;
	
	@Override
	public TCategoryEntity queryObject(Long id){
		return tCategoryDao.queryObject(id);
	}
	
	@Override
	public List<TCategoryEntity> queryList(Map<String, Object> map){
		return tCategoryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tCategoryDao.queryTotal(map);
	}
	
	@Override
	public void save(TCategoryEntity tCategory){
		tCategoryDao.save(tCategory);
	}
	
	@Override
	public void update(TCategoryEntity tCategory){
		tCategoryDao.update(tCategory);
	}
	
	@Override
	public void delete(Long id){
		tCategoryDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tCategoryDao.deleteBatch(ids);
	}
	
}
